function un(e, t) {
  const n = /* @__PURE__ */ Object.create(null), o = e.split(",");
  for (let r = 0; r < o.length; r++)
    n[o[r]] = !0;
  return t ? (r) => !!n[r.toLowerCase()] : (r) => !!n[r];
}
const P = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, an = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], It = () => {
}, fn = /^on[^a-z]/, pn = (e) => fn.test(e), y = Object.assign, dn = (e, t) => {
  const n = e.indexOf(t);
  n > -1 && e.splice(n, 1);
}, hn = Object.prototype.hasOwnProperty, m = (e, t) => hn.call(e, t), h = Array.isArray, X = (e) => ye(e) === "[object Map]", _n = (e) => ye(e) === "[object Set]", N = (e) => typeof e == "function", $ = (e) => typeof e == "string", We = (e) => typeof e == "symbol", v = (e) => e !== null && typeof e == "object", gn = (e) => v(e) && N(e.then) && N(e.catch), mn = Object.prototype.toString, ye = (e) => mn.call(e), Rt = (e) => ye(e).slice(8, -1), En = (e) => ye(e) === "[object Object]", Be = (e) => $(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Je = (e) => {
  const t = /* @__PURE__ */ Object.create(null);
  return (n) => t[n] || (t[n] = e(n));
}, Nn = /-(\w)/g, we = Je((e) => e.replace(Nn, (t, n) => n ? n.toUpperCase() : "")), oe = Je(
  (e) => e.charAt(0).toUpperCase() + e.slice(1)
), wn = Je(
  (e) => e ? `on${oe(e)}` : ""
), se = (e, t) => !Object.is(e, t), bn = (e, t, n) => {
  Object.defineProperty(e, t, {
    configurable: !0,
    enumerable: !1,
    value: n
  });
};
let lt;
const $e = () => lt || (lt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
function qe(e) {
  if (h(e)) {
    const t = {};
    for (let n = 0; n < e.length; n++) {
      const o = e[n], r = $(o) ? Vn(o) : qe(o);
      if (r)
        for (const s in r)
          t[s] = r[s];
    }
    return t;
  } else {
    if ($(e))
      return e;
    if (v(e))
      return e;
  }
}
const On = /;(?![^(]*\))/g, vn = /:([^]+)/, Sn = /\/\*[^]*?\*\//g;
function Vn(e) {
  const t = {};
  return e.replace(Sn, "").split(On).forEach((n) => {
    if (n) {
      const o = n.split(vn);
      o.length > 1 && (t[o[0].trim()] = o[1].trim());
    }
  }), t;
}
function Ge(e) {
  let t = "";
  if ($(e))
    t = e;
  else if (h(e))
    for (let n = 0; n < e.length; n++) {
      const o = Ge(e[n]);
      o && (t += o + " ");
    }
  else if (v(e))
    for (const n in e)
      e[n] && (t += n + " ");
  return t.trim();
}
function ut(e, ...t) {
  console.warn(`[Vue warn] ${e}`, ...t);
}
let Dt;
function xn(e, t = Dt) {
  t && t.active && t.effects.push(e);
}
function yn() {
  return Dt;
}
const ie = (e) => {
  const t = new Set(e);
  return t.w = 0, t.n = 0, t;
}, $t = (e) => (e.w & H) > 0, Tt = (e) => (e.n & H) > 0, Cn = ({ deps: e }) => {
  if (e.length)
    for (let t = 0; t < e.length; t++)
      e[t].w |= H;
}, In = (e) => {
  const { deps: t } = e;
  if (t.length) {
    let n = 0;
    for (let o = 0; o < t.length; o++) {
      const r = t[o];
      $t(r) && !Tt(r) ? r.delete(e) : t[n++] = r, r.w &= ~H, r.n &= ~H;
    }
    t.length = n;
  }
}, Te = /* @__PURE__ */ new WeakMap();
let ee = 0, H = 1;
const Pe = 30;
let b;
const B = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), Me = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
class Rn {
  constructor(t, n = null, o) {
    this.fn = t, this.scheduler = n, this.active = !0, this.deps = [], this.parent = void 0, xn(this, o);
  }
  run() {
    if (!this.active)
      return this.fn();
    let t = b, n = z;
    for (; t; ) {
      if (t === this)
        return;
      t = t.parent;
    }
    try {
      return this.parent = b, b = this, z = !0, H = 1 << ++ee, ee <= Pe ? Cn(this) : at(this), this.fn();
    } finally {
      ee <= Pe && In(this), H = 1 << --ee, b = this.parent, z = n, this.parent = void 0, this.deferStop && this.stop();
    }
  }
  stop() {
    b === this ? this.deferStop = !0 : this.active && (at(this), this.onStop && this.onStop(), this.active = !1);
  }
}
function at(e) {
  const { deps: t } = e;
  if (t.length) {
    for (let n = 0; n < t.length; n++)
      t[n].delete(e);
    t.length = 0;
  }
}
let z = !0;
const Pt = [];
function Le() {
  Pt.push(z), z = !1;
}
function Ye() {
  const e = Pt.pop();
  z = e === void 0 ? !0 : e;
}
function S(e, t, n) {
  if (z && b) {
    let o = Te.get(e);
    o || Te.set(e, o = /* @__PURE__ */ new Map());
    let r = o.get(n);
    r || o.set(n, r = ie());
    const s = process.env.NODE_ENV !== "production" ? { effect: b, target: e, type: t, key: n } : void 0;
    Fe(r, s);
  }
}
function Fe(e, t) {
  let n = !1;
  ee <= Pe ? Tt(e) || (e.n |= H, n = !$t(e)) : n = !e.has(b), n && (e.add(b), b.deps.push(e), process.env.NODE_ENV !== "production" && b.onTrack && b.onTrack(
    y(
      {
        effect: b
      },
      t
    )
  ));
}
function K(e, t, n, o, r, s) {
  const i = Te.get(e);
  if (!i)
    return;
  let c = [];
  if (t === "clear")
    c = [...i.values()];
  else if (n === "length" && h(e)) {
    const a = Number(o);
    i.forEach((d, l) => {
      (l === "length" || l >= a) && c.push(d);
    });
  } else
    switch (n !== void 0 && c.push(i.get(n)), t) {
      case "add":
        h(e) ? Be(n) && c.push(i.get("length")) : (c.push(i.get(B)), X(e) && c.push(i.get(Me)));
        break;
      case "delete":
        h(e) || (c.push(i.get(B)), X(e) && c.push(i.get(Me)));
        break;
      case "set":
        X(e) && c.push(i.get(B));
        break;
    }
  const u = process.env.NODE_ENV !== "production" ? { target: e, type: t, key: n, newValue: o, oldValue: r, oldTarget: s } : void 0;
  if (c.length === 1)
    c[0] && (process.env.NODE_ENV !== "production" ? Y(c[0], u) : Y(c[0]));
  else {
    const a = [];
    for (const d of c)
      d && a.push(...d);
    process.env.NODE_ENV !== "production" ? Y(ie(a), u) : Y(ie(a));
  }
}
function Y(e, t) {
  const n = h(e) ? e : [...e];
  for (const o of n)
    o.computed && ft(o, t);
  for (const o of n)
    o.computed || ft(o, t);
}
function ft(e, t) {
  (e !== b || e.allowRecurse) && (process.env.NODE_ENV !== "production" && e.onTrigger && e.onTrigger(y({ effect: e }, t)), e.scheduler ? e.scheduler() : e.run());
}
const Dn = /* @__PURE__ */ un("__proto__,__v_isRef,__isVue"), Mt = new Set(
  /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(We)
), $n = /* @__PURE__ */ Qe(), Tn = /* @__PURE__ */ Qe(!0), Pn = /* @__PURE__ */ Qe(!0, !0), pt = /* @__PURE__ */ Mn();
function Mn() {
  const e = {};
  return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
    e[t] = function(...n) {
      const o = p(this);
      for (let s = 0, i = this.length; s < i; s++)
        S(o, "get", s + "");
      const r = o[t](...n);
      return r === -1 || r === !1 ? o[t](...n.map(p)) : r;
    };
  }), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => {
    e[t] = function(...n) {
      Le();
      const o = p(this)[t].apply(this, n);
      return Ye(), o;
    };
  }), e;
}
function Fn(e) {
  const t = p(this);
  return S(t, "has", e), t.hasOwnProperty(e);
}
function Qe(e = !1, t = !1) {
  return function(o, r, s) {
    if (r === "__v_isReactive")
      return !e;
    if (r === "__v_isReadonly")
      return e;
    if (r === "__v_isShallow")
      return t;
    if (r === "__v_raw" && s === (e ? t ? Ht : zt : t ? Zn : jt).get(o))
      return o;
    const i = h(o);
    if (!e) {
      if (i && m(pt, r))
        return Reflect.get(pt, r, s);
      if (r === "hasOwnProperty")
        return Fn;
    }
    const c = Reflect.get(o, r, s);
    return (We(r) ? Mt.has(r) : Dn(r)) || (e || S(o, "get", r), t) ? c : O(c) ? i && Be(r) ? c : c.value : v(c) ? e ? Ut(c) : Kt(c) : c;
  };
}
const An = /* @__PURE__ */ jn();
function jn(e = !1) {
  return function(n, o, r, s) {
    let i = n[o];
    if (U(i) && O(i) && !O(r))
      return !1;
    if (!e && (!be(r) && !U(r) && (i = p(i), r = p(r)), !h(n) && O(i) && !O(r)))
      return i.value = r, !0;
    const c = h(n) && Be(o) ? Number(o) < n.length : m(n, o), u = Reflect.set(n, o, r, s);
    return n === p(s) && (c ? se(r, i) && K(n, "set", o, r, i) : K(n, "add", o, r)), u;
  };
}
function zn(e, t) {
  const n = m(e, t), o = e[t], r = Reflect.deleteProperty(e, t);
  return r && n && K(e, "delete", t, void 0, o), r;
}
function Hn(e, t) {
  const n = Reflect.has(e, t);
  return (!We(t) || !Mt.has(t)) && S(e, "has", t), n;
}
function Kn(e) {
  return S(e, "iterate", h(e) ? "length" : B), Reflect.ownKeys(e);
}
const Un = {
  get: $n,
  set: An,
  deleteProperty: zn,
  has: Hn,
  ownKeys: Kn
}, Ft = {
  get: Tn,
  set(e, t) {
    return process.env.NODE_ENV !== "production" && ut(
      `Set operation on key "${String(t)}" failed: target is readonly.`,
      e
    ), !0;
  },
  deleteProperty(e, t) {
    return process.env.NODE_ENV !== "production" && ut(
      `Delete operation on key "${String(t)}" failed: target is readonly.`,
      e
    ), !0;
  }
}, Wn = /* @__PURE__ */ y(
  {},
  Ft,
  {
    get: Pn
  }
), Xe = (e) => e, Ce = (e) => Reflect.getPrototypeOf(e);
function fe(e, t, n = !1, o = !1) {
  e = e.__v_raw;
  const r = p(e), s = p(t);
  n || (t !== s && S(r, "get", t), S(r, "get", s));
  const { has: i } = Ce(r), c = o ? Xe : n ? et : ce;
  if (i.call(r, t))
    return c(e.get(t));
  if (i.call(r, s))
    return c(e.get(s));
  e !== r && e.get(t);
}
function pe(e, t = !1) {
  const n = this.__v_raw, o = p(n), r = p(e);
  return t || (e !== r && S(o, "has", e), S(o, "has", r)), e === r ? n.has(e) : n.has(e) || n.has(r);
}
function de(e, t = !1) {
  return e = e.__v_raw, !t && S(p(e), "iterate", B), Reflect.get(e, "size", e);
}
function dt(e) {
  e = p(e);
  const t = p(this);
  return Ce(t).has.call(t, e) || (t.add(e), K(t, "add", e, e)), this;
}
function ht(e, t) {
  t = p(t);
  const n = p(this), { has: o, get: r } = Ce(n);
  let s = o.call(n, e);
  s ? process.env.NODE_ENV !== "production" && At(n, o, e) : (e = p(e), s = o.call(n, e));
  const i = r.call(n, e);
  return n.set(e, t), s ? se(t, i) && K(n, "set", e, t, i) : K(n, "add", e, t), this;
}
function _t(e) {
  const t = p(this), { has: n, get: o } = Ce(t);
  let r = n.call(t, e);
  r ? process.env.NODE_ENV !== "production" && At(t, n, e) : (e = p(e), r = n.call(t, e));
  const s = o ? o.call(t, e) : void 0, i = t.delete(e);
  return r && K(t, "delete", e, void 0, s), i;
}
function gt() {
  const e = p(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? X(e) ? new Map(e) : new Set(e) : void 0, o = e.clear();
  return t && K(e, "clear", void 0, void 0, n), o;
}
function he(e, t) {
  return function(o, r) {
    const s = this, i = s.__v_raw, c = p(i), u = t ? Xe : e ? et : ce;
    return !e && S(c, "iterate", B), i.forEach((a, d) => o.call(r, u(a), u(d), s));
  };
}
function _e(e, t, n) {
  return function(...o) {
    const r = this.__v_raw, s = p(r), i = X(s), c = e === "entries" || e === Symbol.iterator && i, u = e === "keys" && i, a = r[e](...o), d = n ? Xe : t ? et : ce;
    return !t && S(
      s,
      "iterate",
      u ? Me : B
    ), {
      // iterator protocol
      next() {
        const { value: l, done: f } = a.next();
        return f ? { value: l, done: f } : {
          value: c ? [d(l[0]), d(l[1])] : d(l),
          done: f
        };
      },
      // iterable protocol
      [Symbol.iterator]() {
        return this;
      }
    };
  };
}
function F(e) {
  return function(...t) {
    if (process.env.NODE_ENV !== "production") {
      const n = t[0] ? `on key "${t[0]}" ` : "";
      console.warn(
        `${oe(e)} operation ${n}failed: target is readonly.`,
        p(this)
      );
    }
    return e === "delete" ? !1 : this;
  };
}
function Bn() {
  const e = {
    get(s) {
      return fe(this, s);
    },
    get size() {
      return de(this);
    },
    has: pe,
    add: dt,
    set: ht,
    delete: _t,
    clear: gt,
    forEach: he(!1, !1)
  }, t = {
    get(s) {
      return fe(this, s, !1, !0);
    },
    get size() {
      return de(this);
    },
    has: pe,
    add: dt,
    set: ht,
    delete: _t,
    clear: gt,
    forEach: he(!1, !0)
  }, n = {
    get(s) {
      return fe(this, s, !0);
    },
    get size() {
      return de(this, !0);
    },
    has(s) {
      return pe.call(this, s, !0);
    },
    add: F("add"),
    set: F("set"),
    delete: F("delete"),
    clear: F("clear"),
    forEach: he(!0, !1)
  }, o = {
    get(s) {
      return fe(this, s, !0, !0);
    },
    get size() {
      return de(this, !0);
    },
    has(s) {
      return pe.call(this, s, !0);
    },
    add: F("add"),
    set: F("set"),
    delete: F("delete"),
    clear: F("clear"),
    forEach: he(!0, !0)
  };
  return ["keys", "values", "entries", Symbol.iterator].forEach((s) => {
    e[s] = _e(
      s,
      !1,
      !1
    ), n[s] = _e(
      s,
      !0,
      !1
    ), t[s] = _e(
      s,
      !1,
      !0
    ), o[s] = _e(
      s,
      !0,
      !0
    );
  }), [
    e,
    n,
    t,
    o
  ];
}
const [
  Jn,
  qn,
  Gn,
  Ln
] = /* @__PURE__ */ Bn();
function Ze(e, t) {
  const n = t ? e ? Ln : Gn : e ? qn : Jn;
  return (o, r, s) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? o : Reflect.get(
    m(n, r) && r in o ? n : o,
    r,
    s
  );
}
const Yn = {
  get: /* @__PURE__ */ Ze(!1, !1)
}, Qn = {
  get: /* @__PURE__ */ Ze(!0, !1)
}, Xn = {
  get: /* @__PURE__ */ Ze(!0, !0)
};
function At(e, t, n) {
  const o = p(n);
  if (o !== n && t.call(e, o)) {
    const r = Rt(e);
    console.warn(
      `Reactive ${r} contains both the raw and reactive versions of the same object${r === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
    );
  }
}
const jt = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap();
function kn(e) {
  switch (e) {
    case "Object":
    case "Array":
      return 1;
    case "Map":
    case "Set":
    case "WeakMap":
    case "WeakSet":
      return 2;
    default:
      return 0;
  }
}
function er(e) {
  return e.__v_skip || !Object.isExtensible(e) ? 0 : kn(Rt(e));
}
function Kt(e) {
  return U(e) ? e : ke(
    e,
    !1,
    Un,
    Yn,
    jt
  );
}
function Ut(e) {
  return ke(
    e,
    !0,
    Ft,
    Qn,
    zt
  );
}
function ge(e) {
  return ke(
    e,
    !0,
    Wn,
    Xn,
    Ht
  );
}
function ke(e, t, n, o, r) {
  if (!v(e))
    return process.env.NODE_ENV !== "production" && console.warn(`value cannot be made reactive: ${String(e)}`), e;
  if (e.__v_raw && !(t && e.__v_isReactive))
    return e;
  const s = r.get(e);
  if (s)
    return s;
  const i = er(e);
  if (i === 0)
    return e;
  const c = new Proxy(
    e,
    i === 2 ? o : n
  );
  return r.set(e, c), c;
}
function J(e) {
  return U(e) ? J(e.__v_raw) : !!(e && e.__v_isReactive);
}
function U(e) {
  return !!(e && e.__v_isReadonly);
}
function be(e) {
  return !!(e && e.__v_isShallow);
}
function Ae(e) {
  return J(e) || U(e);
}
function p(e) {
  const t = e && e.__v_raw;
  return t ? p(t) : e;
}
function tr(e) {
  return bn(e, "__v_skip", !0), e;
}
const ce = (e) => v(e) ? Kt(e) : e, et = (e) => v(e) ? Ut(e) : e;
function nr(e) {
  z && b && (e = p(e), process.env.NODE_ENV !== "production" ? Fe(e.dep || (e.dep = ie()), {
    target: e,
    type: "get",
    key: "value"
  }) : Fe(e.dep || (e.dep = ie())));
}
function rr(e, t) {
  e = p(e);
  const n = e.dep;
  n && (process.env.NODE_ENV !== "production" ? Y(n, {
    target: e,
    type: "set",
    key: "value",
    newValue: t
  }) : Y(n));
}
function O(e) {
  return !!(e && e.__v_isRef === !0);
}
function mt(e) {
  return or(e, !1);
}
function or(e, t) {
  return O(e) ? e : new sr(e, t);
}
class sr {
  constructor(t, n) {
    this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : p(t), this._value = n ? t : ce(t);
  }
  get value() {
    return nr(this), this._value;
  }
  set value(t) {
    const n = this.__v_isShallow || be(t) || U(t);
    t = n ? t : p(t), se(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : ce(t), rr(this, t));
  }
}
function ir(e) {
  return O(e) ? e.value : e;
}
const cr = {
  get: (e, t, n) => ir(Reflect.get(e, t, n)),
  set: (e, t, n, o) => {
    const r = e[t];
    return O(r) && !O(n) ? (r.value = n, !0) : Reflect.set(e, t, n, o);
  }
};
function lr(e) {
  return J(e) ? e : new Proxy(e, cr);
}
const q = [];
function ur(e) {
  q.push(e);
}
function ar() {
  q.pop();
}
function E(e, ...t) {
  if (process.env.NODE_ENV === "production")
    return;
  Le();
  const n = q.length ? q[q.length - 1].component : null, o = n && n.appContext.config.warnHandler, r = fr();
  if (o)
    G(
      o,
      n,
      11,
      [
        e + t.join(""),
        n && n.proxy,
        r.map(
          ({ vnode: s }) => `at <${on(n, s.type)}>`
        ).join(`
`),
        r
      ]
    );
  else {
    const s = [`[Vue warn]: ${e}`, ...t];
    r.length && s.push(`
`, ...pr(r)), console.warn(...s);
  }
  Ye();
}
function fr() {
  let e = q[q.length - 1];
  if (!e)
    return [];
  const t = [];
  for (; e; ) {
    const n = t[0];
    n && n.vnode === e ? n.recurseCount++ : t.push({
      vnode: e,
      recurseCount: 0
    });
    const o = e.component && e.component.parent;
    e = o && o.vnode;
  }
  return t;
}
function pr(e) {
  const t = [];
  return e.forEach((n, o) => {
    t.push(...o === 0 ? [] : [`
`], ...dr(n));
  }), t;
}
function dr({ vnode: e, recurseCount: t }) {
  const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, r = ` at <${on(
    e.component,
    e.type,
    o
  )}`, s = ">" + n;
  return e.props ? [r, ...hr(e.props), s] : [r + s];
}
function hr(e) {
  const t = [], n = Object.keys(e);
  return n.slice(0, 3).forEach((o) => {
    t.push(...Wt(o, e[o]));
  }), n.length > 3 && t.push(" ..."), t;
}
function Wt(e, t, n) {
  return $(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : O(t) ? (t = Wt(e, p(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : N(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = p(t), n ? t : [`${e}=`, t]);
}
const tt = {
  sp: "serverPrefetch hook",
  bc: "beforeCreate hook",
  c: "created hook",
  bm: "beforeMount hook",
  m: "mounted hook",
  bu: "beforeUpdate hook",
  u: "updated",
  bum: "beforeUnmount hook",
  um: "unmounted hook",
  a: "activated hook",
  da: "deactivated hook",
  ec: "errorCaptured hook",
  rtc: "renderTracked hook",
  rtg: "renderTriggered hook",
  0: "setup function",
  1: "render function",
  2: "watcher getter",
  3: "watcher callback",
  4: "watcher cleanup function",
  5: "native event handler",
  6: "component event handler",
  7: "vnode hook",
  8: "directive hook",
  9: "transition hook",
  10: "app errorHandler",
  11: "app warnHandler",
  12: "ref function",
  13: "async component loader",
  14: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"
};
function G(e, t, n, o) {
  let r;
  try {
    r = o ? e(...o) : e();
  } catch (s) {
    Bt(s, t, n);
  }
  return r;
}
function Oe(e, t, n, o) {
  if (N(e)) {
    const s = G(e, t, n, o);
    return s && gn(s) && s.catch((i) => {
      Bt(i, t, n);
    }), s;
  }
  const r = [];
  for (let s = 0; s < e.length; s++)
    r.push(Oe(e[s], t, n, o));
  return r;
}
function Bt(e, t, n, o = !0) {
  const r = t ? t.vnode : null;
  if (t) {
    let s = t.parent;
    const i = t.proxy, c = process.env.NODE_ENV !== "production" ? tt[n] : n;
    for (; s; ) {
      const a = s.ec;
      if (a) {
        for (let d = 0; d < a.length; d++)
          if (a[d](e, i, c) === !1)
            return;
      }
      s = s.parent;
    }
    const u = t.appContext.config.errorHandler;
    if (u) {
      G(
        u,
        null,
        10,
        [e, i, c]
      );
      return;
    }
  }
  _r(e, n, r, o);
}
function _r(e, t, n, o = !0) {
  if (process.env.NODE_ENV !== "production") {
    const r = tt[t];
    if (n && ur(n), E(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && ar(), o)
      throw e;
    console.error(e);
  } else
    console.error(e);
}
let ve = !1, je = !1;
const R = [];
let j = 0;
const Z = [];
let T = null, A = 0;
const Jt = /* @__PURE__ */ Promise.resolve();
let nt = null;
const gr = 100;
function mr(e) {
  const t = nt || Jt;
  return e ? t.then(this ? e.bind(this) : e) : t;
}
function Er(e) {
  let t = j + 1, n = R.length;
  for (; t < n; ) {
    const o = t + n >>> 1;
    le(R[o]) < e ? t = o + 1 : n = o;
  }
  return t;
}
function rt(e) {
  (!R.length || !R.includes(
    e,
    ve && e.allowRecurse ? j + 1 : j
  )) && (e.id == null ? R.push(e) : R.splice(Er(e.id), 0, e), qt());
}
function qt() {
  !ve && !je && (je = !0, nt = Jt.then(Lt));
}
function Gt(e) {
  h(e) ? Z.push(...e) : (!T || !T.includes(
    e,
    e.allowRecurse ? A + 1 : A
  )) && Z.push(e), qt();
}
function Nr(e) {
  if (Z.length) {
    const t = [...new Set(Z)];
    if (Z.length = 0, T) {
      T.push(...t);
      return;
    }
    for (T = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), T.sort((n, o) => le(n) - le(o)), A = 0; A < T.length; A++)
      process.env.NODE_ENV !== "production" && Yt(e, T[A]) || T[A]();
    T = null, A = 0;
  }
}
const le = (e) => e.id == null ? 1 / 0 : e.id, wr = (e, t) => {
  const n = le(e) - le(t);
  if (n === 0) {
    if (e.pre && !t.pre)
      return -1;
    if (t.pre && !e.pre)
      return 1;
  }
  return n;
};
function Lt(e) {
  je = !1, ve = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), R.sort(wr);
  const t = process.env.NODE_ENV !== "production" ? (n) => Yt(e, n) : It;
  try {
    for (j = 0; j < R.length; j++) {
      const n = R[j];
      if (n && n.active !== !1) {
        if (process.env.NODE_ENV !== "production" && t(n))
          continue;
        G(n, null, 14);
      }
    }
  } finally {
    j = 0, R.length = 0, Nr(e), ve = !1, nt = null, (R.length || Z.length) && Lt(e);
  }
}
function Yt(e, t) {
  if (!e.has(t))
    e.set(t, 1);
  else {
    const n = e.get(t);
    if (n > gr) {
      const o = t.ownerInstance, r = o && ct(o.type);
      return E(
        `Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`
      ), !0;
    } else
      e.set(t, n + 1);
  }
}
const k = /* @__PURE__ */ new Set();
process.env.NODE_ENV !== "production" && ($e().__VUE_HMR_RUNTIME__ = {
  createRecord: Ie(br),
  rerender: Ie(Or),
  reload: Ie(vr)
});
const Se = /* @__PURE__ */ new Map();
function br(e, t) {
  return Se.has(e) ? !1 : (Se.set(e, {
    initialDef: ne(t),
    instances: /* @__PURE__ */ new Set()
  }), !0);
}
function ne(e) {
  return sn(e) ? e.__vccOpts : e;
}
function Or(e, t) {
  const n = Se.get(e);
  n && (n.initialDef.render = t, [...n.instances].forEach((o) => {
    t && (o.render = t, ne(o.type).render = t), o.renderCache = [], o.update();
  }));
}
function vr(e, t) {
  const n = Se.get(e);
  if (!n)
    return;
  t = ne(t), Et(n.initialDef, t);
  const o = [...n.instances];
  for (const r of o) {
    const s = ne(r.type);
    k.has(s) || (s !== n.initialDef && Et(s, t), k.add(s)), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (k.add(s), r.ceReload(t.styles), k.delete(s)) : r.parent ? rt(r.parent.update) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
      "[HMR] Root or manually mounted instance modified. Full reload required."
    );
  }
  Gt(() => {
    for (const r of o)
      k.delete(
        ne(r.type)
      );
  });
}
function Et(e, t) {
  y(e, t);
  for (const n in e)
    n !== "__file" && !(n in t) && delete e[n];
}
function Ie(e) {
  return (t, n) => {
    try {
      return e(t, n);
    } catch (o) {
      console.error(o), console.warn(
        "[HMR] Something went wrong during Vue component hot-reload. Full reload required."
      );
    }
  };
}
function Sr(e, ...t) {
}
const Vr = /* @__PURE__ */ xr(
  "component:updated"
  /* COMPONENT_UPDATED */
);
function xr(e) {
  return (t) => {
    Sr(
      e,
      t.appContext.app,
      t.uid,
      t.parent ? t.parent.uid : void 0,
      t
    );
  };
}
let I = null, Qt = null;
function Nt(e) {
  const t = I;
  return I = e, Qt = e && e.type.__scopeId || null, t;
}
function yr(e, t = I, n) {
  if (!t || e._n)
    return e;
  const o = (...r) => {
    o._d && yt(-1);
    const s = Nt(t);
    let i;
    try {
      i = e(...r);
    } finally {
      Nt(s), o._d && yt(1);
    }
    return process.env.NODE_ENV !== "production" && Vr(t), i;
  };
  return o._n = !0, o._c = !0, o._d = !0, o;
}
const Cr = (e) => e.__isSuspense;
function Ir(e, t) {
  t && t.pendingBranch ? h(e) ? t.effects.push(...e) : t.effects.push(e) : Gt(e);
}
const me = {};
function Rr(e, t, n) {
  return process.env.NODE_ENV !== "production" && !N(t) && E(
    "`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."
  ), Xt(e, t, n);
}
function Xt(e, t, { immediate: n, deep: o, flush: r, onTrack: s, onTrigger: i } = P) {
  var c;
  process.env.NODE_ENV !== "production" && !t && (n !== void 0 && E(
    'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
  ), o !== void 0 && E(
    'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
  ));
  const u = (g) => {
    E(
      "Invalid watch source: ",
      g,
      "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
    );
  }, a = yn() === ((c = M) == null ? void 0 : c.scope) ? M : null;
  let d, l = !1, f = !1;
  if (O(e) ? (d = () => e.value, l = be(e)) : J(e) ? (d = () => e, o = !0) : h(e) ? (f = !0, l = e.some((g) => J(g) || be(g)), d = () => e.map((g) => {
    if (O(g))
      return g.value;
    if (J(g))
      return Q(g);
    if (N(g))
      return G(g, a, 2);
    process.env.NODE_ENV !== "production" && u(g);
  })) : N(e) ? t ? d = () => G(e, a, 2) : d = () => {
    if (!(a && a.isUnmounted))
      return _ && _(), Oe(
        e,
        a,
        3,
        [V]
      );
  } : (d = It, process.env.NODE_ENV !== "production" && u(e)), t && o) {
    const g = d;
    d = () => Q(g());
  }
  let _, V = (g) => {
    _ = C.onStop = () => {
      G(g, a, 4);
    };
  }, x = f ? new Array(e.length).fill(me) : me;
  const W = () => {
    if (C.active)
      if (t) {
        const g = C.run();
        (o || l || (f ? g.some(
          (cn, ln) => se(cn, x[ln])
        ) : se(g, x))) && (_ && _(), Oe(t, a, 3, [
          g,
          // pass undefined as the old value when it's changed for the first time
          x === me ? void 0 : f && x[0] === me ? [] : x,
          V
        ]), x = g);
      } else
        C.run();
  };
  W.allowRecurse = !!t;
  let ae;
  r === "sync" ? ae = W : r === "post" ? ae = () => xt(W, a && a.suspense) : (W.pre = !0, a && (W.id = a.uid), ae = () => rt(W));
  const C = new Rn(d, ae);
  return process.env.NODE_ENV !== "production" && (C.onTrack = s, C.onTrigger = i), t ? n ? W() : x = C.run() : r === "post" ? xt(
    C.run.bind(C),
    a && a.suspense
  ) : C.run(), () => {
    C.stop(), a && a.scope && dn(a.scope.effects, C);
  };
}
function Dr(e, t, n) {
  const o = this.proxy, r = $(e) ? e.includes(".") ? $r(o, e) : () => o[e] : e.bind(o, o);
  let s;
  N(t) ? s = t : (s = t.handler, n = t);
  const i = M;
  Ue(this);
  const c = Xt(r, s.bind(o), n);
  return i ? Ue(i) : rn(), c;
}
function $r(e, t) {
  const n = t.split(".");
  return () => {
    let o = e;
    for (let r = 0; r < n.length && o; r++)
      o = o[n[r]];
    return o;
  };
}
function Q(e, t) {
  if (!v(e) || e.__v_skip || (t = t || /* @__PURE__ */ new Set(), t.has(e)))
    return e;
  if (t.add(e), O(e))
    Q(e.value, t);
  else if (h(e))
    for (let n = 0; n < e.length; n++)
      Q(e[n], t);
  else if (_n(e) || X(e))
    e.forEach((n) => {
      Q(n, t);
    });
  else if (En(e))
    for (const n in e)
      Q(e[n], t);
  return e;
}
function Tr(e, t) {
  return N(e) ? (
    // #8326: extend call and options.name access are considered side-effects
    // by Rollup, so we have to wrap it in a pure-annotated IIFE.
    /* @__PURE__ */ (() => y({ name: e.name }, t, { setup: e }))()
  ) : e;
}
function Pr(e, t, n = M, o = !1) {
  if (n) {
    const r = n[e] || (n[e] = []), s = t.__weh || (t.__weh = (...i) => {
      if (n.isUnmounted)
        return;
      Le(), Ue(n);
      const c = Oe(t, n, e, i);
      return rn(), Ye(), c;
    });
    return o ? r.unshift(s) : r.push(s), s;
  } else if (process.env.NODE_ENV !== "production") {
    const r = wn(tt[e].replace(/ hook$/, ""));
    E(
      `${r} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`
    );
  }
}
const Mr = (e) => (t, n = M) => (
  // post-create lifecycle registrations are noops during SSR (except for serverPrefetch)
  Pr(e, (...o) => t(...o), n)
), Fr = Mr("m"), ze = "components";
function wt(e, t) {
  return jr(ze, e, !0, t) || e;
}
const Ar = Symbol.for("v-ndc");
function jr(e, t, n = !0, o = !1) {
  const r = I || M;
  if (r) {
    const s = r.type;
    if (e === ze) {
      const c = ct(
        s,
        !1
        /* do not include inferred name to avoid breaking existing code */
      );
      if (c && (c === t || c === we(t) || c === oe(we(t))))
        return s;
    }
    const i = (
      // local registration
      // check instance[type] first which is resolved for options API
      bt(r[e] || s[e], t) || // global registration
      bt(r.appContext[e], t)
    );
    if (!i && o)
      return s;
    if (process.env.NODE_ENV !== "production" && n && !i) {
      const c = e === ze ? `
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : "";
      E(`Failed to resolve ${e.slice(0, -1)}: ${t}${c}`);
    }
    return i;
  } else
    process.env.NODE_ENV !== "production" && E(
      `resolve${oe(e.slice(0, -1))} can only be used in render() or setup().`
    );
}
function bt(e, t) {
  return e && (e[t] || e[we(t)] || e[oe(we(t))]);
}
const He = (e) => e ? ro(e) ? oo(e) || e.proxy : He(e.parent) : null, re = (
  // Move PURE marker to new line to workaround compiler discarding it
  // due to type annotation
  /* @__PURE__ */ y(/* @__PURE__ */ Object.create(null), {
    $: (e) => e,
    $el: (e) => e.vnode.el,
    $data: (e) => e.data,
    $props: (e) => process.env.NODE_ENV !== "production" ? ge(e.props) : e.props,
    $attrs: (e) => process.env.NODE_ENV !== "production" ? ge(e.attrs) : e.attrs,
    $slots: (e) => process.env.NODE_ENV !== "production" ? ge(e.slots) : e.slots,
    $refs: (e) => process.env.NODE_ENV !== "production" ? ge(e.refs) : e.refs,
    $parent: (e) => He(e.parent),
    $root: (e) => He(e.root),
    $emit: (e) => e.emit,
    $options: (e) => Kr(e),
    $forceUpdate: (e) => e.f || (e.f = () => rt(e.update)),
    $nextTick: (e) => e.n || (e.n = mr.bind(e.proxy)),
    $watch: (e) => Dr.bind(e)
  })
), zr = (e) => e === "_" || e === "$", Re = (e, t) => e !== P && !e.__isScriptSetup && m(e, t), Hr = {
  get({ _: e }, t) {
    const { ctx: n, setupState: o, data: r, props: s, accessCache: i, type: c, appContext: u } = e;
    if (process.env.NODE_ENV !== "production" && t === "__isVue")
      return !0;
    let a;
    if (t[0] !== "$") {
      const _ = i[t];
      if (_ !== void 0)
        switch (_) {
          case 1:
            return o[t];
          case 2:
            return r[t];
          case 4:
            return n[t];
          case 3:
            return s[t];
        }
      else {
        if (Re(o, t))
          return i[t] = 1, o[t];
        if (r !== P && m(r, t))
          return i[t] = 2, r[t];
        if (
          // only cache other properties when instance has declared (thus stable)
          // props
          (a = e.propsOptions[0]) && m(a, t)
        )
          return i[t] = 3, s[t];
        if (n !== P && m(n, t))
          return i[t] = 4, n[t];
        i[t] = 0;
      }
    }
    const d = re[t];
    let l, f;
    if (d)
      return t === "$attrs" ? (S(e, "get", t), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && S(e, "get", t), d(e);
    if (
      // css module (injected by vue-loader)
      (l = c.__cssModules) && (l = l[t])
    )
      return l;
    if (n !== P && m(n, t))
      return i[t] = 4, n[t];
    if (
      // global properties
      f = u.config.globalProperties, m(f, t)
    )
      return f[t];
    process.env.NODE_ENV !== "production" && I && (!$(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading
    // to infinite warning loop
    t.indexOf("__v") !== 0) && (r !== P && zr(t[0]) && m(r, t) ? E(
      `Property ${JSON.stringify(
        t
      )} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
    ) : e === I && E(
      `Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`
    ));
  },
  set({ _: e }, t, n) {
    const { data: o, setupState: r, ctx: s } = e;
    return Re(r, t) ? (r[t] = n, !0) : process.env.NODE_ENV !== "production" && r.__isScriptSetup && m(r, t) ? (E(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : o !== P && m(o, t) ? (o[t] = n, !0) : m(e.props, t) ? (process.env.NODE_ENV !== "production" && E(`Attempting to mutate prop "${t}". Props are readonly.`), !1) : t[0] === "$" && t.slice(1) in e ? (process.env.NODE_ENV !== "production" && E(
      `Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`
    ), !1) : (process.env.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(s, t, {
      enumerable: !0,
      configurable: !0,
      value: n
    }) : s[t] = n, !0);
  },
  has({
    _: { data: e, setupState: t, accessCache: n, ctx: o, appContext: r, propsOptions: s }
  }, i) {
    let c;
    return !!n[i] || e !== P && m(e, i) || Re(t, i) || (c = s[0]) && m(c, i) || m(o, i) || m(re, i) || m(r.config.globalProperties, i);
  },
  defineProperty(e, t, n) {
    return n.get != null ? e._.accessCache[t] = 0 : m(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
  }
};
process.env.NODE_ENV !== "production" && (Hr.ownKeys = (e) => (E(
  "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
), Reflect.ownKeys(e)));
function Ot(e) {
  return h(e) ? e.reduce(
    (t, n) => (t[n] = null, t),
    {}
  ) : e;
}
function Kr(e) {
  const t = e.type, { mixins: n, extends: o } = t, {
    mixins: r,
    optionsCache: s,
    config: { optionMergeStrategies: i }
  } = e.appContext, c = s.get(t);
  let u;
  return c ? u = c : !r.length && !n && !o ? u = t : (u = {}, r.length && r.forEach(
    (a) => Ve(u, a, i, !0)
  ), Ve(u, t, i)), v(t) && s.set(t, u), u;
}
function Ve(e, t, n, o = !1) {
  const { mixins: r, extends: s } = t;
  s && Ve(e, s, n, !0), r && r.forEach(
    (i) => Ve(e, i, n, !0)
  );
  for (const i in t)
    if (o && i === "expose")
      process.env.NODE_ENV !== "production" && E(
        '"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.'
      );
    else {
      const c = Ur[i] || n && n[i];
      e[i] = c ? c(e[i], t[i]) : t[i];
    }
  return e;
}
const Ur = {
  data: vt,
  props: Vt,
  emits: Vt,
  // objects
  methods: te,
  computed: te,
  // lifecycle
  beforeCreate: w,
  created: w,
  beforeMount: w,
  mounted: w,
  beforeUpdate: w,
  updated: w,
  beforeDestroy: w,
  beforeUnmount: w,
  destroyed: w,
  unmounted: w,
  activated: w,
  deactivated: w,
  errorCaptured: w,
  serverPrefetch: w,
  // assets
  components: te,
  directives: te,
  // watch
  watch: Br,
  // provide / inject
  provide: vt,
  inject: Wr
};
function vt(e, t) {
  return t ? e ? function() {
    return y(
      N(e) ? e.call(this, this) : e,
      N(t) ? t.call(this, this) : t
    );
  } : t : e;
}
function Wr(e, t) {
  return te(St(e), St(t));
}
function St(e) {
  if (h(e)) {
    const t = {};
    for (let n = 0; n < e.length; n++)
      t[e[n]] = e[n];
    return t;
  }
  return e;
}
function w(e, t) {
  return e ? [...new Set([].concat(e, t))] : t;
}
function te(e, t) {
  return e ? y(/* @__PURE__ */ Object.create(null), e, t) : t;
}
function Vt(e, t) {
  return e ? h(e) && h(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : y(
    /* @__PURE__ */ Object.create(null),
    Ot(e),
    Ot(t ?? {})
  ) : t;
}
function Br(e, t) {
  if (!e)
    return t;
  if (!t)
    return e;
  const n = y(/* @__PURE__ */ Object.create(null), e);
  for (const o in t)
    n[o] = w(e[o], t[o]);
  return n;
}
const xt = Ir, Jr = (e) => e.__isTeleport, Zt = Symbol.for("v-fgt"), qr = Symbol.for("v-txt"), Gr = Symbol.for("v-cmt"), Ee = [];
let D = null;
function Lr(e = !1) {
  Ee.push(D = e ? null : []);
}
function Yr() {
  Ee.pop(), D = Ee[Ee.length - 1] || null;
}
let ue = 1;
function yt(e) {
  ue += e;
}
function Qr(e) {
  return e.dynamicChildren = ue > 0 ? D || an : null, Yr(), ue > 0 && D && D.push(e), e;
}
function Xr(e, t, n, o, r) {
  return Qr(
    ot(
      e,
      t,
      n,
      o,
      r,
      !0
      /* isBlock: prevent a block from tracking itself */
    )
  );
}
function Zr(e) {
  return e ? e.__v_isVNode === !0 : !1;
}
const kr = (...e) => tn(
  ...e
), kt = "__vInternal", en = ({ key: e }) => e ?? null, Ne = ({
  ref: e,
  ref_key: t,
  ref_for: n
}) => (typeof e == "number" && (e = "" + e), e != null ? $(e) || O(e) || N(e) ? { i: I, r: e, k: t, f: !!n } : e : null);
function eo(e, t = null, n = null, o = 0, r = null, s = e === Zt ? 0 : 1, i = !1, c = !1) {
  const u = {
    __v_isVNode: !0,
    __v_skip: !0,
    type: e,
    props: t,
    key: t && en(t),
    ref: t && Ne(t),
    scopeId: Qt,
    slotScopeIds: null,
    children: n,
    component: null,
    suspense: null,
    ssContent: null,
    ssFallback: null,
    dirs: null,
    transition: null,
    el: null,
    anchor: null,
    target: null,
    targetAnchor: null,
    staticCount: 0,
    shapeFlag: s,
    patchFlag: o,
    dynamicProps: r,
    dynamicChildren: null,
    appContext: null,
    ctx: I
  };
  return c ? (st(u, n), s & 128 && e.normalize(u)) : n && (u.shapeFlag |= $(n) ? 8 : 16), process.env.NODE_ENV !== "production" && u.key !== u.key && E("VNode created with invalid key (NaN). VNode type:", u.type), ue > 0 && // avoid a block node from tracking itself
  !i && // has current parent block
  D && // presence of a patch flag indicates this node needs patching on updates.
  // component nodes also should always be patched, because even if the
  // component doesn't need to update, it needs to persist the instance on to
  // the next vnode so that it can be properly unmounted later.
  (u.patchFlag > 0 || s & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
  // vnode should not be considered dynamic due to handler caching.
  u.patchFlag !== 32 && D.push(u), u;
}
const ot = process.env.NODE_ENV !== "production" ? kr : tn;
function tn(e, t = null, n = null, o = 0, r = null, s = !1) {
  if ((!e || e === Ar) && (process.env.NODE_ENV !== "production" && !e && E(`Invalid vnode type when creating vnode: ${e}.`), e = Gr), Zr(e)) {
    const c = xe(
      e,
      t,
      !0
      /* mergeRef: true */
    );
    return n && st(c, n), ue > 0 && !s && D && (c.shapeFlag & 6 ? D[D.indexOf(e)] = c : D.push(c)), c.patchFlag |= -2, c;
  }
  if (sn(e) && (e = e.__vccOpts), t) {
    t = to(t);
    let { class: c, style: u } = t;
    c && !$(c) && (t.class = Ge(c)), v(u) && (Ae(u) && !h(u) && (u = y({}, u)), t.style = qe(u));
  }
  const i = $(e) ? 1 : Cr(e) ? 128 : Jr(e) ? 64 : v(e) ? 4 : N(e) ? 2 : 0;
  return process.env.NODE_ENV !== "production" && i & 4 && Ae(e) && (e = p(e), E(
    "Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
    `
Component that was made reactive: `,
    e
  )), eo(
    e,
    t,
    n,
    o,
    r,
    i,
    s,
    !0
  );
}
function to(e) {
  return e ? Ae(e) || kt in e ? y({}, e) : e : null;
}
function xe(e, t, n = !1) {
  const { props: o, ref: r, patchFlag: s, children: i } = e, c = t ? Ke(o || {}, t) : o;
  return {
    __v_isVNode: !0,
    __v_skip: !0,
    type: e.type,
    props: c,
    key: c && en(c),
    ref: t && t.ref ? (
      // #2078 in the case of <component :is="vnode" ref="extra"/>
      // if the vnode itself already has a ref, cloneVNode will need to merge
      // the refs so the single vnode can be set on multiple refs
      n && r ? h(r) ? r.concat(Ne(t)) : [r, Ne(t)] : Ne(t)
    ) : r,
    scopeId: e.scopeId,
    slotScopeIds: e.slotScopeIds,
    children: process.env.NODE_ENV !== "production" && s === -1 && h(i) ? i.map(nn) : i,
    target: e.target,
    targetAnchor: e.targetAnchor,
    staticCount: e.staticCount,
    shapeFlag: e.shapeFlag,
    // if the vnode is cloned with extra props, we can no longer assume its
    // existing patch flag to be reliable and need to add the FULL_PROPS flag.
    // note: preserve flag for fragments since they use the flag for children
    // fast paths only.
    patchFlag: t && e.type !== Zt ? s === -1 ? 16 : s | 16 : s,
    dynamicProps: e.dynamicProps,
    dynamicChildren: e.dynamicChildren,
    appContext: e.appContext,
    dirs: e.dirs,
    transition: e.transition,
    // These should technically only be non-null on mounted VNodes. However,
    // they *should* be copied for kept-alive vnodes. So we just always copy
    // them since them being non-null during a mount doesn't affect the logic as
    // they will simply be overwritten.
    component: e.component,
    suspense: e.suspense,
    ssContent: e.ssContent && xe(e.ssContent),
    ssFallback: e.ssFallback && xe(e.ssFallback),
    el: e.el,
    anchor: e.anchor,
    ctx: e.ctx,
    ce: e.ce
  };
}
function nn(e) {
  const t = xe(e);
  return h(e.children) && (t.children = e.children.map(nn)), t;
}
function no(e = " ", t = 0) {
  return ot(qr, null, e, t);
}
function st(e, t) {
  let n = 0;
  const { shapeFlag: o } = e;
  if (t == null)
    t = null;
  else if (h(t))
    n = 16;
  else if (typeof t == "object")
    if (o & 65) {
      const r = t.default;
      r && (r._c && (r._d = !1), st(e, r()), r._c && (r._d = !0));
      return;
    } else {
      n = 32;
      const r = t._;
      !r && !(kt in t) ? t._ctx = I : r === 3 && I && (I.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
    }
  else
    N(t) ? (t = { default: t, _ctx: I }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [no(t)]) : n = 8);
  e.children = t, e.shapeFlag |= n;
}
function Ke(...e) {
  const t = {};
  for (let n = 0; n < e.length; n++) {
    const o = e[n];
    for (const r in o)
      if (r === "class")
        t.class !== o.class && (t.class = Ge([t.class, o.class]));
      else if (r === "style")
        t.style = qe([t.style, o.style]);
      else if (pn(r)) {
        const s = t[r], i = o[r];
        i && s !== i && !(h(s) && s.includes(i)) && (t[r] = s ? [].concat(s, i) : i);
      } else
        r !== "" && (t[r] = o[r]);
  }
  return t;
}
let M = null, it, L, Ct = "__VUE_INSTANCE_SETTERS__";
(L = $e()[Ct]) || (L = $e()[Ct] = []), L.push((e) => M = e), it = (e) => {
  L.length > 1 ? L.forEach((t) => t(e)) : L[0](e);
};
const Ue = (e) => {
  it(e), e.scope.on();
}, rn = () => {
  M && M.scope.off(), it(null);
};
function ro(e) {
  return e.vnode.shapeFlag & 4;
}
function oo(e) {
  if (e.exposed)
    return e.exposeProxy || (e.exposeProxy = new Proxy(lr(tr(e.exposed)), {
      get(t, n) {
        if (n in t)
          return t[n];
        if (n in re)
          return re[n](e);
      },
      has(t, n) {
        return n in t || n in re;
      }
    }));
}
const so = /(?:^|[-_])(\w)/g, io = (e) => e.replace(so, (t) => t.toUpperCase()).replace(/[-_]/g, "");
function ct(e, t = !0) {
  return N(e) ? e.displayName || e.name : e.name || t && e.__name;
}
function on(e, t, n = !1) {
  let o = ct(t);
  if (!o && t.__file) {
    const r = t.__file.match(/([^/\\]+)\.\w+$/);
    r && (o = r[1]);
  }
  if (!o && e && e.parent) {
    const r = (s) => {
      for (const i in s)
        if (s[i] === t)
          return i;
    };
    o = r(
      e.components || e.parent.type.components
    ) || r(e.appContext.components);
  }
  return o ? io(o) : n ? "App" : "Anonymous";
}
function sn(e) {
  return N(e) && "__vccOpts" in e;
}
function De(e) {
  return !!(e && e.__v_isShallow);
}
function co() {
  if (process.env.NODE_ENV === "production" || typeof window > "u")
    return;
  const e = { style: "color:#3ba776" }, t = { style: "color:#0b1bc9" }, n = { style: "color:#b62e24" }, o = { style: "color:#9d288c" }, r = {
    header(l) {
      return v(l) ? l.__isVue ? ["div", e, "VueInstance"] : O(l) ? [
        "div",
        {},
        ["span", e, d(l)],
        "<",
        c(l.value),
        ">"
      ] : J(l) ? [
        "div",
        {},
        ["span", e, De(l) ? "ShallowReactive" : "Reactive"],
        "<",
        c(l),
        `>${U(l) ? " (readonly)" : ""}`
      ] : U(l) ? [
        "div",
        {},
        ["span", e, De(l) ? "ShallowReadonly" : "Readonly"],
        "<",
        c(l),
        ">"
      ] : null : null;
    },
    hasBody(l) {
      return l && l.__isVue;
    },
    body(l) {
      if (l && l.__isVue)
        return [
          "div",
          {},
          ...s(l.$)
        ];
    }
  };
  function s(l) {
    const f = [];
    l.type.props && l.props && f.push(i("props", p(l.props))), l.setupState !== P && f.push(i("setup", l.setupState)), l.data !== P && f.push(i("data", p(l.data)));
    const _ = u(l, "computed");
    _ && f.push(i("computed", _));
    const V = u(l, "inject");
    return V && f.push(i("injected", V)), f.push([
      "div",
      {},
      [
        "span",
        {
          style: o.style + ";opacity:0.66"
        },
        "$ (internal): "
      ],
      ["object", { object: l }]
    ]), f;
  }
  function i(l, f) {
    return f = y({}, f), Object.keys(f).length ? [
      "div",
      { style: "line-height:1.25em;margin-bottom:0.6em" },
      [
        "div",
        {
          style: "color:#476582"
        },
        l
      ],
      [
        "div",
        {
          style: "padding-left:1.25em"
        },
        ...Object.keys(f).map((_) => [
          "div",
          {},
          ["span", o, _ + ": "],
          c(f[_], !1)
        ])
      ]
    ] : ["span", {}];
  }
  function c(l, f = !0) {
    return typeof l == "number" ? ["span", t, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", o, l] : v(l) ? ["object", { object: f ? p(l) : l }] : ["span", n, String(l)];
  }
  function u(l, f) {
    const _ = l.type;
    if (N(_))
      return;
    const V = {};
    for (const x in l.ctx)
      a(_, x, f) && (V[x] = l.ctx[x]);
    return V;
  }
  function a(l, f, _) {
    const V = l[_];
    if (h(V) && V.includes(f) || v(V) && f in V || l.extends && a(l.extends, f, _) || l.mixins && l.mixins.some((x) => a(x, f, _)))
      return !0;
  }
  function d(l) {
    return De(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
  }
  window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
}
function lo() {
  co();
}
process.env.NODE_ENV !== "production" && lo();
const uo = /* @__PURE__ */ Tr({
  __name: "index",
  props: {
    name: {
      type: String,
      default: ""
    },
    list: {
      type: Array,
      default: []
    },
    modelValue: {
      type: [String, Object],
      default: ""
    },
    label: {
      type: String,
      default: ""
    },
    rules: {
      type: Array,
      default: []
    },
    keyName: {
      type: String,
      default: ""
    },
    valueName: {
      type: String,
      default: ""
    },
    formAttrs: {
      type: Object,
      default: () => ({})
    },
    disabled: {
      type: Boolean,
      default: !1
    },
    help: {
      type: String,
      default: ""
    },
    readonly: {
      type: Boolean,
      default: !1
    },
    api: {
      type: Function
    }
  },
  emits: ["update:modelValue", "change"],
  setup(e, { emit: t }) {
    const n = e, o = n.keyName || "label", r = n.valueName || "value";
    Fr(() => {
      if (!n.name)
        throw new Error();
      n.api ? n.api().then((u) => {
        i.value = u.map((a) => ({ label: a[o], value: a[r] }));
      }) : n.list.length && (i.value = n.list.map((u) => ({ label: u[o], value: u[r], disabled: u.disabled })));
    });
    const s = mt(n.modelValue || []), i = mt([]);
    Rr(() => n.modelValue, (u) => {
      s.value = u;
    });
    function c(u) {
      t("update:modelValue", u), t("change", u);
    }
    return (u, a) => {
      const d = wt("t-checkbox-group"), l = wt("t-form-item");
      return Lr(), Xr(l, Ke(n.formAttrs, {
        label: n.label,
        help: n.help,
        rules: n.rules,
        name: n.name
      }), {
        default: yr(() => [
          ot(d, Ke({
            readonly: n.readonly,
            disabled: n.disabled
          }, u.$attrs, {
            modelValue: s.value,
            "onUpdate:modelValue": a[0] || (a[0] = (f) => s.value = f),
            options: i.value,
            onChange: c
          }), null, 16, ["readonly", "disabled", "modelValue", "options"])
        ]),
        _: 1
      }, 16, ["label", "help", "rules", "name"]);
    };
  }
}), fo = {
  install(e) {
    e.component("ProFormCheckbox", uo);
  }
};
export {
  fo as default
};
